package cn.cdeden.knowledge.domain;

import cn.cdeden.knowledge.api.domain.vo.RemoteSysMessageVo;
import cn.cdeden.knowledge.domain.dto.SysMessageDto;
import com.baomidou.mybatisplus.annotation.*;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.*;

import java.util.Date;

/**
 * @author Yu.
 * @Description // 系统消息 模块
 * @Date 2023/11/29 13:29
 **/
@Data
@TableName("sys_message")
@AutoMappers({@AutoMapper(target = RemoteSysMessageVo.class),@AutoMapper(target = SysMessageDto.class)})
public class SysMessage {

    //    @ApiModelProperty(value = "编号")
    @TableId(type = IdType.AUTO)
    private Long id;

    //    @ApiModelProperty(value = "操作人")
    private String operator;

    //    @ApiModelProperty(value = "是否已读")
    private Boolean reading;

    //    @ApiModelProperty(value = "接收人")
    private String recipient;

    //    @ApiModelProperty(value = "内容")
    private String content;

    //    @ApiModelProperty(value = "已读时间")
    private Date readingTime;

    //    @ApiModelProperty(value = "库编号")
    private String nodeId;

    //    @ApiModelProperty(value = "消息类型")
    private String messageType;

    //    @ApiModelProperty(value = "文档类型")
    private String fileType;

    //    @ApiModelProperty(value = "文档类型")
    private String type;

    //    @ApiModelProperty(value = "团队Id")
    private String teamId;

    //    @ApiModelProperty(value = "创建日期")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    //    @ApiModelProperty(value = "删除者")
    private String deleteId;

    //    @ApiModelProperty(value = "删除日期")
    private Date deleteTime;

    //    @ApiModelProperty(value = "是否删除")
    private Boolean deleteState = false;
}
